HDDS-15605. Fix flaky testContainerExclusionWithClosedContainerException#10621
Open
chihsuan wants to merge 1 commit into
Open
HDDS-15605. Fix flaky testContainerExclusionWithClosedContainerException#10621chihsuan wants to merge 1 commit into
chihsuan wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
testContainerExclusionWithClosedContainerExceptionintermittently fails at the datanode assertion (Expecting empty but was: [<uuid>(null/null)]).The test asserts that after a
ClosedContainerExceptiononly the closed container is excluded. But under the defaultALL_COMMITTEDwatch level, a momentarily-slow follower whose watch-for-commit times out is recorded in the client exclude list — intended slow-node-avoidance behaviour of the configurablewatchType(HDDS-2887). So an empty datanode set is not an invariant underALL_COMMITTED; the assertion predates thewatchTypeconfig and never accounted for it.The test's subject is container exclusion, which is independent of the watch level. This removes the non-invariant
getDatanodes().isEmpty()assertion (the container and pipeline assertions stay); watch-level datanode exclusion is already covered bytestDatanodeExclusionWithMajorityCommit.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15605
How was this patch tested?
intermittent-test-checkon the fork,TestFailureHandlingByClient,test-name=ALL, 100 runs each (10 splits x 10 iterations):masterbaseline, same harness: the assertion reproduced in ~5/100 runs (Expecting empty but was: [...]), matching the reported intermittency. (run)mastertoo):TimeoutExceptioninTestHelper.waitForContainerClose(container state transition not completing under the harness's extreme parallel load of 10 concurrent splits); it occurs before the modified assertion and is a pre-existing load-sensitivity of the test.testDatanodeExclusionWithMajorityCommitfailures are the known HDDS-13972 (@Flaky).